import Layout from '@/layout'

export default {
  // hidden: true 控制当前路由是否在侧边栏显示
  path: '/employees',
  component: Layout,
  children: [
    { // 组织架构 如果子机路由path设置为空 会自动匹配
      path: '',
      name: 'employees',
      component: () => import('@/views/employees/employees.vue'),
      meta: { title: '员工管理', icon: 'people' }
    },
    { // 员工详情
      path: 'detail/:id',
      name: 'detail',
      component: () => import('@/views/employees/detail.vue'),
      meta: { title: '员工管理', icon: 'people' },
      hidden: true // 不在左侧显示
    }
  ]
}
